/*
 * Copyright (c) 2012-2020 MIRACL UK Ltd.
 *
 * This file is part of MIRACL Core
 * (see https://github.com/miracl/core).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* Fixed Data in ROM - Field and Curve parameters */

package C13318

//*** rom field parameters*****
// Base Bits= 29
var Modulus = [...]Chunk{0x1FFFFFED, 0x1FFFFFFF, 0x1FFFFFFF, 0x1FFFFFFF, 0x1FFFFFFF, 0x1FFFFFFF, 0x1FFFFFFF, 0x1FFFFFFF, 0x7FFFFF}
var R2modp = [...]Chunk{0x169000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
var ROI = [...]Chunk{0xA0EA0B0, 0x770D93A, 0xBF91E31, 0x6300D5A, 0x1D7A72F4, 0x4C9EFD, 0x1C2CAD34, 0x1009F83B, 0x2B8324}

const MConst Chunk = 0x13

//*** rom curve parameters *****
// Base Bits= 29

const CURVE_Cof_I int = 1

var CURVE_Cof = [...]Chunk{0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}

const CURVE_B_I int = 13318

var CURVE_B = [...]Chunk{0x3406, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
var CURVE_Order = [...]Chunk{0xDC2CBE3, 0x1BE896E2, 0x1AE345BA, 0xCA9F07B, 0xF4F, 0x0, 0x0, 0x0, 0x800000}
var CURVE_Gx = [...]Chunk{0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
var CURVE_Gy = [...]Chunk{0xB6EAD0B, 0x6469AA3, 0x5B6D6E, 0x1996099E, 0x166369D4, 0x18728B34, 0x1BC4E058, 0x1B24D794, 0x6675AA}
var CURVE_HTPC = [...]Chunk{0x507504F, 0x13B86C9D, 0x5FC8F18, 0x31806AD, 0x1EBD397A, 0x264F7E, 0x1E16569A, 0x804FC1D, 0x55C192}
